package com.example.sharding.jdbc.service;

import com.example.sharding.jdbc.db.entity.PayOrderPO;
import com.example.sharding.jdbc.model.req.QueryPayOrderReq;
import com.goshine.common.resp.Page;
import com.goshine.common.resp.Response;

import java.util.List;

public interface PayOrderService {
    Response<PayOrderPO> queryByOrderId(long orderId);

    Response<Integer> insert(PayOrderPO record);

    Response<Integer> batchInsert(List<PayOrderPO> list);

    Response<Integer> deleteByOrderId(long orderId);

    Response<Integer> updateByOrderId(PayOrderPO record);

    Response<Page<PayOrderPO>> page(QueryPayOrderReq req);
}
